package OOP.day11;

public class Point {
    private int x;
    private int y;
    private double s;

    //构造器
    public Point(){

    }
    public Point(int x, int y, double s){
        this.x = x;
        this.y = y;
        this.s = s;
    }

    //getter and setter
    public void setS(double s) {
        this.s = s;
    }

    public double getS() {
        return s;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    //toString
    @Override
    public String toString() {
        return "Point{" +
                "x=" + x +
                ", y='" + y + '\'' +
                ", s=" + s +
                '}';
    }
}
